package day08.Test1;

public class Test1 {
    public static void main(String[] args) {

        Point a = new Point(3, 4);
        Point b = new Point(3, 4);
        System.out.println(a.toString());
        System.out.println(b.toString());
        System.out.println(a == b); //比较地址
        System.out.println(a.equals(b)); // 和(a == b)相同
    }
}
